How to Limit Excerpt Length in WordPress

92

How to Limit Excerpt Length in WordPress -

// Filter except length to 35 words.
// tn custom excerpt length
function tn_custom_excerpt_length( $length ) {
return 35;
}
add_filter( 'excerpt_length', 'tn_custom_excerpt_length', 999 );

Comments

Submit
0 Comments